package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.target.dao.IndexTargetRepository;
import com.eduction.modules.target.entity.IndexTargetEntity;
import com.eduction.service.IndexTargetEntityService;

@Service
public class IndexTargetEntityServiceImpl implements IndexTargetEntityService {

	@Autowired
	private IndexTargetRepository indexTargetRepository;
	
	@Override
	public List<IndexTargetEntity> queryAllIndexTarget() throws SQLException {
		List<IndexTargetEntity> list = indexTargetRepository.queryAllIndexTarget();
		return list;
	}

	@Override
	public IndexTargetEntity queryIndexTargetById(String pid) throws SQLException {
		IndexTargetEntity i = indexTargetRepository.queryIndexTargetById(pid);
		return i;
	}

	@Override
	public void saveIndexTargetInfo(IndexTargetEntity i) {
		indexTargetRepository.saveIndexTargetInfo(i);

	}

}
